package org.basic.mail.domain.vo;


import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author Lenovo
 */
@Data
@EqualsAndHashCode()
@ToString(callSuper = true)
public class MailTemplateRespVo {

    private Long id;

    @NotNull(message = "名称不能为空")
    private String name;

    @NotNull(message = "模版编号不能为空")
    private String code;

    @NotNull(message = "发送的邮箱账号编号不能为空")
    private Long accountId;

    private String nickname;

    @NotEmpty(message = "标题不能为空")
    private String title;

    @NotEmpty(message = "内容不能为空")
    private String content;

    @NotNull(message = "状态不能为空")
    private Integer status;

    private String remark;

    private List<String> mailParams;

    private LocalDateTime createTime;

}
